package org.tgcloud.group.web.controller.manager.process;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.*;
import org.tgcloud.group.core.APPResultMessage;
import org.tgcloud.group.core.custom.Permissions;
import org.tgcloud.group.core.session.Session;
import org.tgcloud.group.service.manager.process.ProcessManageService;
import org.tgcloud.group.web.controller.manager.ManageAPPBaseController;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: zhy
 * @Created: 2025-08-19-上午9:41
 * @Description:
 */
@Api(tags = "流程管理相关接口")
@RestController
@RequestMapping("/manager/pc/user")
@EnableAutoConfiguration
public class ProcessManageController extends ManageAPPBaseController {

    @Autowired
    private ProcessManageService processManageService;


//    @ApiOperation(value = "添加流程")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "token", value = "token", required = true, dataType = "string")
//    })
//    @ResponseBody
//    @RequestMapping(value = "/addBusiness", method = RequestMethod.POST)
//    public APPResultMessage doAddBusiness(@ModelAttribute("session") Session session,
//                                          @RequestParam String username,
//                                          @RequestParam String telephone,
//                                          @RequestParam BigDecimal basicSalary,
//                                          @RequestParam BigDecimal performanceGoodsValue,
//                                          @RequestParam String internalValue,
//                                          @RequestParam Integer gradeId,
//                                          @RequestParam String area,
//                                          @RequestParam(required = false) Long joinTime,
//                                          @RequestParam short businessType,
//                                          @RequestParam Integer departId,
//                                          @RequestParam Integer groupId,
//                                          @RequestParam Integer teamType,
//                                          @RequestParam(required = false) String performanceTime,
//                                          @RequestParam(required = false) String performanceTimeList,
//                                          @RequestParam(required = false) Integer businessAssistantId,
//                                          @RequestParam(required = false) String productSelectionUserIds
//    ){
//        return businessManageService.doAddBusiness(username, telephone, basicSalary, performanceGoodsValue, internalValue,gradeId, area,
//                joinTime == null ? null : new Date(joinTime), businessType, departId,groupId,teamType,performanceTime, performanceTimeList,
//                businessAssistantId, productSelectionUserIds);
//    }

}
